<?php /*
Create this table as output. Find the logic behind this and give the output.
*/
//error_reporting(0); 
?>
<table  cellpadding="0" cellspacing="0"  style="background-color:red; width:512px;height:250px; border:1px solid black;">
<?php
$first =1;
$second=25; $even=''; $odd='';

for($i=$first; $i<=$second; $i++)
{
?><tr  style=" border: 1px solid black;background-color:blue; width:100px;height:50px; display:block; float:left;"><?php
 if($i%2==0)
 {
 ?><td style=" width:100px;height:50px;">
 <table style=" width:100px;height:50px; " cellpadding="0" cellspacing="0" >
 <td style="background-color:pink; width:50px;height:25px;"></td>
 <td style="background-color:pink; width:50px;height:25px; "></td>
 <tr>
 <td style="background-color:pink; width:50px;height:25px;"></td>
 <td style="background-color:pink; width:50px;height:25px;">
 <?php
 
 $even.= $i;
 //echo $even;
 ?></td></tr></table></td><?php

 }
 
 else
 {
 
 ?><td style="background-color:green; width:100px;height:50px;"><?php
 $odd.= $i;
 //echo $odd;
 ?></td><?php
 
 }
 ?></tr><?php
}



?>
</table>
